home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cocktail / reuse.lha / reuse / c / General.h < prev    next >
C/C++ Source or Header  |  1992-08-18  |  1KB  |  51 lines

  1. # ifndef yyGeneral
  2. # define yyGeneral
  3.  
  4. /* $Id: General.h,v 1.5 1992/08/07 14:36:51 grosch rel $ */
  5.  
  6. /* $Log: General.h,v $
  7.  * Revision 1.5  1992/08/07  14:36:51  grosch
  8.  * added comments
  9.  *
  10.  * Revision 1.4  1991/11/21  14:28:16  grosch
  11.  * new version of RCS on SPARC
  12.  *
  13.  * Revision 1.3  91/07/17  17:23:06  grosch
  14.  * introduced ARGS trick for ANSI compatibility
  15.  * 
  16.  * Revision 1.2  90/09/04  17:32:09  grosch
  17.  * automatic determination of alignment
  18.  * 
  19.  * Revision 1.1  90/07/04  14:33:54  grosch
  20.  * introduced conditional include
  21.  * 
  22.  * Revision 1.0  88/10/04  11:44:37  grosch
  23.  * Initial revision
  24.  * 
  25.  */
  26.  
  27. /* Ich, Doktor Josef Grosch, Informatiker, Sept. 1987 */
  28.  
  29. # include "ratc.h"
  30.  
  31. # ifdef __STDC__
  32. # define ARGS(parameters)    parameters
  33. # else
  34. # define ARGS(parameters)    ()
  35. # endif
  36.  
  37. # define Min(a,b) ((a <= b) ? a : b)
  38.             /* Returns the minimum of 'a' and 'b'.        */
  39. # define Max(a,b) ((a >= b) ? a : b)
  40.             /* Returns the maximum of 'a' and 'b'.        */
  41.  
  42. extern cardinal        Log2 ARGS((register unsigned long x));
  43.             /* Returns the logarithm to the base 2 of 'x'.    */
  44. extern unsigned long    Exp2 ARGS((register cardinal x));
  45.             /* Returns 2 to the power of 'x'.        */
  46.  
  47. extern short    yyMaxAlign;
  48. extern long    yyAlignMasks [];
  49.  
  50. # endif
  51.